package com.h2210c.user.fenig;

import cn.hutool.json.JSONUtil;

import com.alibaba.fastjson.JSON;
import com.github.pagehelper.PageInfo;
import com.jiyun.model.Course;
import com.jiyun.model.Dianzhantype;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("day09Course")
public interface ListCourseService {
    @RequestMapping("course/dianzhan")
    public void dianzhan(@RequestParam("id") Long id);
    @RequestMapping("course/list")
    public List<Course> list();
    @RequestMapping("course/dianzhanla")
    public void dianzhan(@RequestBody Dianzhantype dianzhantype);
    @RequestMapping("course/findPage")
    public PageInfo<Course> findPage(@RequestBody Course course);
    @RequestMapping("course/findbyid")
    public Course findbyid(@RequestParam("id") Integer id);




}
